Repository navigation
Fix wrong bibo namespace in RDF export - #17842
Conversation
|
Hey @dannys2603! 👋 Thank you for contributing to JabRef! We have automated checks in place, based on which you will soon get feedback if any of them are failing. We also use Qodo for review assistance. It will update your pull request description with a review help and offer suggestions to improve the pull request. After all automated checks pass, a maintainer will also review your contribution. Once that happens, you can go through their comments in the "Files changed" tab and act on them, or reply to the conversation if you have further inputs. You can read about the whole pull request process in our contribution guide. Please ensure that your pull request is in line with our AI Usage Policy and make necessary disclosures. |
There was a problem hiding this comment.
Follow up maybe: AuthorListParser.
| sb.append("<bibo:contribution>\n"); | ||
| sb.append(" <bibo:Contribution>\n"); | ||
| sb.append(" <bibo:role rdf:resource=\"http://purl.org/ontology/bibo/roles/author\" />\n"); | ||
| sb.append(" <bibo:contributor><foaf:Person foaf:name=\"").append(author).append("\"/></bibo:contributor>\n"); | ||
| sb.append(" <bibo:position>").append(position).append("</bibo:position>\n"); | ||
| sb.append(" </bibo:Contribution>\n"); | ||
| sb.append("</bibo:contribution>\n"); |
There was a problem hiding this comment.
Don't we use bibo?
What about dublin core at the other places? Relation to PdfMetaDataImporter?
(Sorry for that, but if we are in the context of these namespaces, we should check)
| @@ -2,7 +2,7 @@ | |||
| <rdf:RDF | |||
| xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" | |||
| xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" | |||
| xmlns:bibo="http://purl.org/ontology/biblio/" | |||
| xmlns:bibo="http://purl.org/ontology/bibo/" | |||
There was a problem hiding this comment.
On the other hand, if this is the rigth namespace now, we should just merge and fix other things later.
PR Summary by QodoCorrect BibO RDF namespace and export authors as creators
AI Description
Merge Risk
|
Code Review by Qodo
1. Exporter test builds a real preferences object
|
|
The requested changes were not addressed for 3 days. Please follow-up in the next 7 days or your PR will be automatically closed. You can check the contributing guidelines for hints on the pull request process. |
* main: (202 commits) New Crowdin updates (JabRef#17956) chore(deps): update dependency com.konghq:unirest-modules-gson to v4.12.4 (JabRef#17955) Let Renovate update JavaFX in the jabsrv launcher (JabRef#17954) chore(deps): update dependency com.konghq:unirest-modules-gson to v4.12.3 (JabRef#17953) Import the RIS serial number of books and chapters as ISBN (JabRef#17891) Share nested LaTeX conversion with Writer (JabRef#17921) Render BST preview italics and bold as text, not math letters (JabRef#17902) Chore(deps): Bump com.konghq:unirest-java-bom from 4.11.11 to 4.12.0 in /versions (JabRef#17951) Inject NativeDesktop into its callers and remove the deprecated static helpers (JabRef#17947) New Crowdin updates (JabRef#17945) Chore(deps): Bump org.graalvm.sdk:nativeimage from 25.5.5.0.3 to 25.6.5.1 in /versions (JabRef#17944) Chore(deps): Bump com.googlecode.plist:dd-plist from 1.30 to 1.31 in /versions (JabRef#17943) Chore(deps): Bump JetBrains/junie-github-action from 1.10.1 to 1.10.2 (JabRef#17942) Chore(deps): Bump softprops/action-gh-release from 3.0.3 to 3.0.4 (JabRef#17941) Chore(deps): Bump anthropics/claude-code-action from 1.0.286 to 1.0.289 (JabRef#17940) Chore(deps): Bump ruby/setup-ruby from 1.343.0 to 1.344.0 (JabRef#17939) Update dependency com.konghq:unirest-modules-gson to v4.12.0 (JabRef#17937) [Bot] Update SBOM files (JabRef#17934) Chore(deps): Bump jablib/src/main/resources/csl-styles from `af0aea3` to `7fa488b` (JabRef#17928) Chore(deps): Bump jablib/src/main/resources/csl-locales from `8bef426` to `21a175a` (JabRef#17927) ...
|
Thanks @koppor and @Siedlerchr for reviewing this and for sorting out the author order and the code style. I'll do the rest of my plan in a follow-up PR, adding proper types for books and conference papers, exporting missing fields like pages and ISBN, and adding tests. |
|
Successfully created backport PR for |
### Summary The BibO RDF export used the namespace http://purl.org/ontology/biblio/ which doesn't exist (it returns a 404). I changed it to http://purl.org/ontology/bibo/ which is the official BIBO namespace. This is a first step, next i'm planning to update how the authors are exported, and add proper types for books and conference papers, export missing fields like pages and ISBN, and add tests. ### Steps to test 1. Open a library with at least one entry 2. Go to File > Export > Export all entries 3. Choose BibO RDF as the format and save it 4. Open the saved file and check the xmlns:bibo line at the top 5. It should now say xmlns:bibo="http://purl.org/ontology/bibo/" ### Related issues and pull requests Closes JabRef#8920 ### AI usage I used Claude (Opus 5.5) to: - help me understand the issue and RDF - find the correct BIBO namespace - set up JabRef on my Mac I made the code change myself. AIL2 ### Checklist - [x] I own the copyright of the code submitted and I license it under the [MIT license](https://github.com/JabRef/jabref/blob/main/LICENSE) - [x] If AI tools were used, I disclosed them in the "AI usage" section and reviewed, understood, and take full ownership of all AI-generated code - [x] I manually tested my changes in running JabRef (always required) - [ ] I added JUnit tests for changes (if applicable) - [/] I added screenshots in the PR description (if change is visible to the user) - [ ] I added **one sentence (max 20 words)** to `CHANGELOG.md` describing the change from the user's point of view (if the change is visible to the user) - [ ] I checked the [user documentation](https://docs.jabref.org/) for up to dateness and submitted a pull request to our [user documentation repository](https://github.com/JabRef/user-documentation/tree/main/en) --------- Co-authored-by: Siedlerchr <siedlerkiller@gmail.com>
* main: (35 commits) Fix author and editor name export in MODS format (JabRef#17936) Fix LaTeX conversion in exported PDF metadata (JabRef#17810) Fix preferences menu text (JabRef#17966) Skip forced full-text index merges on shutdown (JabRef#17961) Fix wrong bibo namespace in RDF export (JabRef#17842) New Crowdin updates (JabRef#17956) chore(deps): update dependency com.konghq:unirest-modules-gson to v4.12.4 (JabRef#17955) Let Renovate update JavaFX in the jabsrv launcher (JabRef#17954) chore(deps): update dependency com.konghq:unirest-modules-gson to v4.12.3 (JabRef#17953) Import the RIS serial number of books and chapters as ISBN (JabRef#17891) Share nested LaTeX conversion with Writer (JabRef#17921) Render BST preview italics and bold as text, not math letters (JabRef#17902) Chore(deps): Bump com.konghq:unirest-java-bom from 4.11.11 to 4.12.0 in /versions (JabRef#17951) Inject NativeDesktop into its callers and remove the deprecated static helpers (JabRef#17947) New Crowdin updates (JabRef#17945) Chore(deps): Bump org.graalvm.sdk:nativeimage from 25.5.5.0.3 to 25.6.5.1 in /versions (JabRef#17944) Chore(deps): Bump com.googlecode.plist:dd-plist from 1.30 to 1.31 in /versions (JabRef#17943) Chore(deps): Bump JetBrains/junie-github-action from 1.10.1 to 1.10.2 (JabRef#17942) Chore(deps): Bump softprops/action-gh-release from 3.0.3 to 3.0.4 (JabRef#17941) Chore(deps): Bump anthropics/claude-code-action from 1.0.286 to 1.0.289 (JabRef#17940) ...
* main: (58 commits) Keep organization authors containing "and" intact in RIS export. (JabRef#17876) Fix author and editor name export in MODS format (JabRef#17936) Fix LaTeX conversion in exported PDF metadata (JabRef#17810) Fix preferences menu text (JabRef#17966) Skip forced full-text index merges on shutdown (JabRef#17961) Fix wrong bibo namespace in RDF export (JabRef#17842) New Crowdin updates (JabRef#17956) chore(deps): update dependency com.konghq:unirest-modules-gson to v4.12.4 (JabRef#17955) Let Renovate update JavaFX in the jabsrv launcher (JabRef#17954) chore(deps): update dependency com.konghq:unirest-modules-gson to v4.12.3 (JabRef#17953) Import the RIS serial number of books and chapters as ISBN (JabRef#17891) Share nested LaTeX conversion with Writer (JabRef#17921) Render BST preview italics and bold as text, not math letters (JabRef#17902) Chore(deps): Bump com.konghq:unirest-java-bom from 4.11.11 to 4.12.0 in /versions (JabRef#17951) Inject NativeDesktop into its callers and remove the deprecated static helpers (JabRef#17947) New Crowdin updates (JabRef#17945) Chore(deps): Bump org.graalvm.sdk:nativeimage from 25.5.5.0.3 to 25.6.5.1 in /versions (JabRef#17944) Chore(deps): Bump com.googlecode.plist:dd-plist from 1.30 to 1.31 in /versions (JabRef#17943) Chore(deps): Bump JetBrains/junie-github-action from 1.10.1 to 1.10.2 (JabRef#17942) Chore(deps): Bump softprops/action-gh-release from 3.0.3 to 3.0.4 (JabRef#17941) ...
Summary
The BibO RDF export used the namespace http://purl.org/ontology/biblio/ which doesn't exist (it returns a 404). I changed it to http://purl.org/ontology/bibo/ which is the official BIBO namespace. This is a first step, next i'm planning to update how the authors are exported, and add proper types for books and conference papers, export missing fields like pages and ISBN, and add tests.
Steps to test
Related issues and pull requests
Closes #8920
AI usage
I used Claude (Opus 5.5) to:
I made the code change myself.
AIL2
Checklist
CHANGELOG.mddescribing the change from the user's point of view (if the change is visible to the user)